#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export PATH
read -p "enter rtk_ip:" RTKIP
ip="192.168.8.151"
port="4444"
(sleep 1;echo "UNLOGALL ICOM4";\
	sleep 1;echo "SETINSTRANSLATION ANT2 0.265 0 -0.03 0.05 0.05 0.05  VEHICLE";\
	sleep 1;echo "SETINSTRANSLATION ANT1 -0.27 0 -0.03 0.05 0.05 0.05  VEHICLE";\
	sleep 1;echo "SETINSROTATION RBV 0 0 0 0.05 0.05 0.05";\
	sleep 1;echo "NTRIPCONFIG NCOM1 CLIENT V1 82.157.72.228:2101  DZNR0 coolcar0 Coolcar@pass0 ALL";\
	sleep 1;echo "INTERFACEMODE NCOM1 AUTO AUTO";\
	sleep 1;echo "SAVECONFIG";\
	sleep 1;echo "IPCONFIG ETHA STATIC $RTKIP 255.255.255.0 192.168.8.1" ;\
	sleep 2;echo "SAVECONFIG")|telnet $ip $port
(sleep 1;echo "UNLOGALL ICOM4";\
	 sleep 2;echo "SAVECONFIG")|telnet $RTKIP $port

